<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Crafty Demo</title>
</head>
<body>
    <script>
        window.onload = function() {
            Crafty.init();
            var player = Crafty.e("2D, Canvas, Color, Fourway")
                .attr({x:100, y:100, w:50, h:50})
                .color("red")
                .fourway(30);
        }
    </script>
    <script src="js/crafty-min.js"></script>
</body>
</html>